package com.muyu.danmo.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.List;

/**
 * 相关星图标题对象 danmo_information_map_title
 * 
 * @author kunzong
 * @date 2024-12-09
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoInformationMapTitle implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 相关星图标题ID */
    private Long id;

    /** 标题内容 */
    @Excel(name = "标题内容")
    private String title;

    /** 个人信息ID */
    @Excel(name = "个人信息ID")
    private Long informationId;

    /**
     * 浏览量
     */
    @Excel(name = "浏览量")
    private Long views;

    /**
     * 个人信息相关星图
     */
    @TableField(exist = false)
    private List<DanmoInformationMap> danmoInformationMapList;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("informationId", getInformationId())
            .append("title", getTitle())
            .toString();
    }
}
